package com.miku.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName tb_like_count
 */
@TableName(value ="tb_like_count")
@Data
@Accessors(chain = true)
public class LikeCount implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 目标ID  (文章/说说/评论)
     */
    private Integer targetId;

    /**
     * 目标类型 ( 1文章  2评论  3说说)
     */
    private Integer type;

    @TableField(exist = false)
    private Long count;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}